<include file="Public/header" />
<script src="http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
<script>


//    $(document).ready(function() {
        function wxlogin() {
            $.ajax({
                type:"get",
                url:" https://open.weixin.qq.com/connect/qrconnect?appid=wx13d96fa253aea332&redirect_uri=http%3a%2f%2fwww.le-pv.com%2fsrc%2f%23%2faccess%2fwxSignin&response_type=code&scope=SCOPE&state=STATE#wechat_redirect",
                data:'',
                datatype:"json",
                success:function(result,status){
//                    alert(result+status);
                    alert("1,通过ajax调用获取不到,2,可以通过iframe框架直接博取跳转衔接3，可以通过官方第二种调用方式，但是需要授权");

                }});

        }
//    })






       var obj = new WxLogin({
           id: "qr-img",
           appid: "wx13d96fa253aea332",
           scope: "snsapi_login",
           redirect_uri:'http%3a%2f%2fwww.le-pv.com%2fsrc%2f%23%2faccess%2fwxSignin',
           state: 'STATE',
           style: "white",
           href: ""});
       var url2=" https://open.weixin.qq.com/connect/qrconnect?appid=wx13d96fa253aea332&redirect_uri=http%3a%2f%2fwww.le-pv.com%2fsrc%2f%23%2faccess%2fwxSignin&response_type=code&scope=SCOPE&state=STATE#wechat_redirect";
       var url="https://open.weixin.qq.com/connect/qrconnect?appid="+obj.appid+"&redirect_uri="+obj.redirect_uri+"&response_type=code&scope=SCOPE&state=STATE#wechat_redirect";
//       function wxlogin() {
//
//          alert(" https://open.weixin.qq.com/connect/qrconnect?appid=wx13d96fa253aea332&redirect_uri=http%3a%2f%2fwww.le-pv.com%2fsrc%2f%23%2faccess%2fwxSignin&response_type=code&scope=SCOPE&state=STATE#wechat_redirect") ;
//       }

//       https://open.weixin.qq.com/connect/qrconnect?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect


</script>
<div style="text-align:center;margin:150px 0; font:normal 14px/24px 'MicroSoft YaHei';">
    <p>

<button onclick="return wxlogin();" value="微信" >
   微信登录
</button>
    </p>


    <image class="scanimg" src="{{filePath}}" bindtap="getAgain"></image>
    <button type="primary" bindtap="primary">点击生成二维码</button>



    <a href="https://open.weixin.qq.com/connect/qrconnect?appid=wx13d96fa253aea332&redirect_uri=http%3a%2f%2fwww.le-pv.com%2fsrc%2f%23%2faccess%2fwxSignin&response_type=code&scope=snsapi_login&state=STATE#wechat_redirect">微信登录</a>


</div>

<include file="Public/footer" />

